package com.wewins.fota.bean.bo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Range;
import org.springframework.util.StringUtils;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.PositiveOrZero;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class DownloadReq {
    @NotBlank
    private String product;

    @NotBlank
    private String imei;

    @NotBlank
    private String srcVersion;

    @NotBlank
    private String dstVersion;

    @Range(min = 0, max = 1, message = "下载类型仅支持0或1")
    private int autoDownload;

    private String reqServer;

    private String respServer;
}
